﻿<UserControl 
    x:Class="PermDoc.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
    mc:Ignorable="d"
    d:DesignWidth="1024"
    d:DesignHeight="768" 
    Loaded="UserControl_Loaded" Unloaded="UserControl_Unloaded" 
    MouseMove="UserControl_MouseMove" KeyUp="UserControl_KeyUp"
    MouseLeftButtonUp="UserControl_MouseLeftButtonUp" 
    MouseRightButtonUp="UserControl_MouseRightButtonUp" MouseWheel="UserControl_MouseWheel">

    <StackPanel 
        Width="Auto"
        Height="Auto"
        Background="White">

        <StackPanel 
            Width="Auto" Height="Auto">
            <StackPanel Orientation="Horizontal" Margin="4" Background="#B3F2E62B">
                <ContentControl Name="oCaption" Content="Первичные документы" />
                <!--<TextBlock Text="Current Url: " />
                <TextBlock Text="{Binding Source, ElementName=navFrame}" />-->
            </StackPanel>
            <StackPanel Orientation="Horizontal">
                <HyperlinkButton Name="hyperlink_start" Content="Статистика" Margin="4" TargetName="navFrame" NavigateUri="/Welcome.xaml" />
                <HyperlinkButton Name="hyperlink_linkCurDay" Content="Сегодня" Margin="4" TargetName="navFrame" NavigateUri="/PageListCurDay.xaml" />
                <HyperlinkButton Name="hyperlink_link" Content="Всё" Margin="4" TargetName="navFrame" NavigateUri="/PageList.xaml" />
                <HyperlinkButton Name="hyperlink_linkFavorites" Content="Избранное" Margin="4" TargetName="navFrame" NavigateUri="/PageFavorites.xaml" />
                <HyperlinkButton Name="hyperlink_linkDoc" Content="Документ" Margin="4" TargetName="navFrame" NavigateUri="/PageDoc.xaml" />
                <HyperlinkButton Name="hyperlink_linkDeepZoom" Content="DeepZoom" Margin="4" TargetName="navFrame" NavigateUri="/PageDeepZoom.xaml" />
                <HyperlinkButton Name="hyperlink_search" Content="Поиск" Margin="4" TargetName="navFrame" NavigateUri="/PageSearch.xaml" />
                <HyperlinkButton Name="hyperlink_axapta" Content="Axapta" Margin="4" TargetName="navFrame" NavigateUri="/PageAxapta.xaml" />
                <HyperlinkButton Name="hyperlink_settings" Content="Настройки" Margin="4" TargetName="navFrame" NavigateUri="/Settings.xaml" />
                <HyperlinkButton Name="hyperlink_help" Content="Справка" Margin="4" TargetName="_blank" NavigateUri="http://sp.korablik.local/shops/SitePages/SilverLight_online_module_%D1%81%D0%BF%D1%80%D0%B0%D0%B2%D0%BA%D0%B0.aspx" />
            </StackPanel>
        </StackPanel>

        <Grid 
            Width="1024" Height="660"
            MinWidth="800" MinHeight="400"
            MaxWidth="1024" MaxHeight="930"
            HorizontalAlignment="Left"
            >
            <Rectangle 
                Width="Auto"
                Height="Auto"
                Stroke="DarkGray" StrokeThickness="1" />
            <navigation:Frame 
                x:Name="navFrame" 
                Width="Auto"
                Height="Auto"
                Source="/Welcome.xaml" 
                Margin="0,0,0,0" 
                VerticalContentAlignment="Stretch" 
                HorizontalContentAlignment="Stretch" 
            />
        </Grid>

    </StackPanel>

</UserControl>
